
ECHO Copying licenses

COPY "PSB.lic" "Src\PServiceBus.ComponentContainer"  /b /y

COPY "PSB.lic" "Src\PServiceBus.Endpoints.Gateway"  /b /y

ECHO Copying licenses completed

"%SystemRoot%/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe" "Src/PServiceBus.sln" /t:Clean /p:WarningLevel=0 /noconsolelogger /p:Configuration=%mode% /p:"Platform=Mixed Platforms"

"%SystemRoot%/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe" "Src/PServiceBus.sln" /t:ReBuild /p:WarningLevel=0 /noconsolelogger /p:Configuration=%mode% /p:"Platform=Mixed Platforms"

AssemblyMerger.exe

XCOPY "Src/PServiceBus.ComponentContainer/bin/%mode%" "Installer\Script\ESB" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB"  /b /y

XCOPY "Src/PServiceBus.Endpoints.Gateway/bin/%mode%" "Installer\Script\ESB Gateway" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB Gateway"  /b /y

XCOPY "Src/PServiceBus.Endpoints.WebAPI/bin/%mode%" "Installer\Script\ESB WEB REST" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB WEB REST"  /b /y

XCOPY "Src/PServiceBus.Endpoints.WebSocket/bin/%mode%" "Installer\Script\ESB WebSocket RPC" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB WebSocket RPC"  /b /y

XCOPY "Src/PServiceBus.Endpoints.Router/bin/%mode%" "Installer\Script\ESB Router" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB Router"  /b /y

XCOPY "Src/PServiceBus.WebSocket/bin/%mode%" "Installer\Script\ESB WebSocket" /i /c /e /q /y

COPY "ServiceInstaller.exe" "Installer\Script\ESB WebSocket"  /b /y

XCOPY "Redis Server" "Installer\Script\Redis Server" /i /c /e /q /y

COPY "PSBReset.exe" "Installer\Script"  /b /y

COPY "PSBUtil.exe" "Installer\Script"  /b /y

"Installer/Script/Inno/iscc.exe" /Q  /O"Installer/Script/" "Installer/Script/install.iss"

RMDIR "Installer/Script/ESB" /s /q

RMDIR "Installer/Script/ESB Gateway" /s /q

RMDIR "Installer/Script/ESB WEB REST" /s /q

RMDIR "Installer/Script/ESB Router" /s /q

RMDIR "Installer/Script/ESB WebSocket" /s /q

RMDIR "Installer/Script/ESB WebSocket RPC" /s /q

RMDIR "Installer/Script/Redis Server" /s /q

DEL /F /S /Q /A "%CD%\Installer\Script\PSBReset.exe"

DEL /F /S /Q /A "%CD%\Installer\Script\PSBUtil.exe"

PAUSE